package com.avic.modules.equipment.service;

import com.avic.common.service.BaseService;
import com.avic.modules.equipment.domain.Equipment;
import com.avic.modules.equipment.domain.EquipmentOperation;
import com.avic.modules.equipment.service.dto.EquipmentOperationQuery;

import java.text.ParseException;
import java.util.List;

/**
 * @author zhangzikang 设备运行表
 * @date 2022-08-14
 */
public interface EquipmentOperationService extends BaseService<EquipmentOperation> {

    /**
     * 查询设备的运行记录
     * @param criteria
     * @return
     */
    Equipment queryOperation(EquipmentOperationQuery criteria);

    Equipment queryOperationAll(EquipmentOperationQuery criteria) throws ParseException;

    /**
     * 添加设备运行记录
     * @param equipId
     * @param state
     */
    void addOperation(String equipId, Integer state, Long Long);

    /*
     * 清空记录
     */
    void del();
}
